package com.chixing.day03;

/**
 * @author Y2014188432
 */
public class AccountTest {
    public static void main(String[] args) {
        Account account1 = new Account();
        Account account2 = new Account("15236 1204 1524 1425","张三","123456abc","15234851256",200000.67,1);

        account1.accNo = "15236 1204 1235 1436";
        account1.accName = "Jake";
        account1.accPassword = "www.www.www";
        account1.accTelNo = "17612345214";
        account1.accBalance = 32154.34;
        account1.accType = 0;

        System.out.println("account1账户信息为:"+account1.toString());
        System.out.println("account2账户信息为"+account2.toString());

        System.out.println("操作前:\t\taccount1账户电话为:"+account1.accTelNo);
        account1.accTelNo = "1833893849";
        System.out.println("操作后:\t\taccount1账户电话为:"+account1.accTelNo);

        System.out.println("操作前:\t\taccount2账户余额为:"+account2.accBalance);
        if(account2.depoist(1000)){
            System.out.println("存款 1000 成功！");
        }
        if(account2.withdraw(500)){
            System.out.println("取款 500 成功！");
        }
        System.out.println("操作后:\t\taccount2账户余额为:"+account2.accBalance);
    }
}
